/**  
* @Title: InventoryDaoImpl.java  
* @Package com.ssm.demo.dao.impl.inventory  
* @Description: TODO(用一句话描述该文件做什么)  
* @author jing Lei 
* @date 2019年1月1日  
* @version V1.0  
*/  

package com.ssm.demo.dao.impl.inventory;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import org.springframework.stereotype.Repository;
import com.ssm.demo.dao.impl.BaseIdaoImpl;
import com.ssm.demo.dao.inventory.IInventoryDao;
import com.ssm.demo.dao.mapper.inventory.IInventoryMapper;
import com.ssm.demo.model.Inventory;

/**  
* @ClassName: InventoryDaoImpl  
* @Description: TODO(这里用一句话描述这个类的作用)  
* @author jing Lei  
* @date 2019年1月1日  
*    
*/
@Repository
public class InventoryDaoImpl extends BaseIdaoImpl<Inventory> implements IInventoryDao {

	@Resource
	private IInventoryMapper iinventoryMapper;

	/**
	 * 
	 * 基础方法实现
	 */
	@PostConstruct
	private void postconstruct() {
		baseMapper = iinventoryMapper;
	}

	/**
	 * 
	 * <p>
	 * Title: findByBookId
	 * </p>
	 * <p>
	 * Description:
	 * </p>
	 * 
	 * @param bookId
	 *            书籍id
	 * @return
	 * @see com.ssm.demo.dao.bookborrow.IBookBorrowDao#findByBookId(int)
	 */
	@Override
	public List<Inventory>  findByBookId(int bookId) {
		return iinventoryMapper.findByBookId(bookId);
	}

}
